module.exports ={
  
  requestDetail: function (cb) {
    let data = { userId: getApp().globalData.userId }
    getApp().func.Post(false,getApp().api.signin_detail, data, function (data) {
      console.log(data);
      cb(data);
    },
      function (error) {
        wx.showToast({
          title: error.data.message,
          icon: 'none',
          duration: 2000,
        })
      })
  },
  signIn: function (cb){
    console.log("signIn");
    let data = { userId: getApp().globalData.userId }
    getApp().func.Post(false,getApp().api.signin, data, function (data) {
      console.log(data);
      cb(data);
    },
      function (error) {
        wx.showToast({
          title: error.data.message,
          icon: 'none',
          duration: 2000,
        })
      })
  }

}
